<template>
  <div>
    <h3 style="color: #000000;">Welcome</h3>
	<button type="button" @click="zn">中文</button>
	<button type="button" @click="en">英文</button>
	<p>{{$t('message')}}</p>
	<p>{{$t('user')}}</p>
  </div>
</template>
<script>
	export default {
		name:'welcome',
		methods:{
			zn(){
				console.log(this.$i18n.zn);
				this.$i18n.locale = 'zn'
			},
			en(){
				this.$i18n.locale = 'en'
			}
		}
	}
</script>
